libxc: rework vnuma bits in setup_guest
authorWei Liu <wei.liu2@citrix.com>
Mon, 1 Jun 2015 10:19:13 +0000 (11:19 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 3 Jun 2015 10:12:02 +0000 (11:12 +0100)
commit10b719dc88300d0a573a1be0954f35e5198703c3
tree858477b4ebb6612f4919945069fc65bd36f7fbcd
parentc5e976dfe58403d26f9d9cd3d50cee3705a53f4d
libxc: rework vnuma bits in setup_guest

Make the setup process similar to PV counterpart. That is, to allocate a
P2M array that covers the whole memory range and start from there. This
is clearer than using an array with no holes in it.

Also the dummy layout should take MMIO hole into consideration. We might
end up having two vmemranges in the dummy layout.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_hvm_build_x86.c